import request from "@/utils/request";

//获取店铺配置项
export function getShopConfig() {
  return request({
    url: "/shop_config"
  });
}
//保存店铺配置项
export function saveShopConfig(data) {
  return request({
    url: "/shop_config",
    data: data,
    method: "post"
  });
}
//更新店铺配置项
export function updateShopConfig(data) {
  return request({
    url: "/shop_config/" + data.id,
    data: data,
    method: "put"
  });
}
